package oo;


public class Stu {
    public String stuNum ;//学生学号
    public String name;//学生姓名
    public String gender;//学生性别
    public int age;//学生年龄
    public Mark[] grade;//学生的卫生绩效数组

    public Stu(String stuNum,String name,String gender,int age,Mark[] mark) {
        this.stuNum = stuNum;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.grade = mark;
    }
  //构造方法
    
    public Stu(String stuNum, String name, String gender, int age, int j, int k) {
    	this.stuNum = stuNum;
        this.name = name;
        this.gender = gender;
        this.age = age;
	}

	public String getStuNum() {
        return stuNum;
    }
    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        if(gender != "男"&&gender != "女") {
            System.out.println("输入有误，重新操作");
            return ;
        }
            
        this.gender = gender;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }

/*	public Mark[] getMark() {
		return grade;
	}

	public void setMark(Mark[] mark) {
		this.grade = mark;
	}*/
 
}  

